function topList(){
    // 二级
    let headPositon = document.querySelector('.header-controller-position')
    let areaList = document.querySelector('.area-list')
    headPositon.addEventListener('mouseenter',function(){
        
        areaList.style.display='block'
        headPositon.addEventListener('mouseleave',function(){
            areaList.style.display=''
        })
    })
    
    // 划过变色
    var oA = document.querySelectorAll('.area-list li') 
   oA.forEach(function(ele,index){
    ele.addEventListener('mouseenter', function() {
        for(var i = 0; i < oA.length; i++) {
            oA[i].style.color='#333'
        }
        ele.style.color = '#d3b145'
    })
    ele.addEventListener('mouseleave', function() {
        ele.style.color = '#333'
    })
   })



    // $('.nav-menu a').addClass('active')
    // let aaa = document.querySelectorAll('.nav-menu a')
    // console.log(aaa)
   $('.nav-menu a').click(function () {
       $('.nav-menu a').removeClass('active')
       $(this).addClass('active')
    // console.log('aaa')
   })

}
